package com.lenovo.testreport.qa.web.languagetestbypage.mapper;

import com.lenovo.testreport.qa.web.languagetestbypage.model.QaWebLanguageEnglishReport;
import com.lenovo.testreport.qa.web.languagetestbypage.model.QaWebLanguageEnglishReportExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author CJF
 * @date 2018/12
 */
@Mapper
public interface QaWebLanguageEnglishReportMapper {
    long countByExample(@Param("tablename") String tablename, QaWebLanguageEnglishReportExample example);

    int deleteByExample(@Param("tablename") String tablename, QaWebLanguageEnglishReportExample example);

    int deleteByPrimaryKey(@Param("tablename") String tablename, Integer rid);

    int insert(@Param("tablename") String tablename, QaWebLanguageEnglishReport record);

    int insertSelective(@Param("tablename") String tablename, QaWebLanguageEnglishReport record);

    List<QaWebLanguageEnglishReport> selectByExample(@Param("tablename") String tablename, QaWebLanguageEnglishReportExample example);

    QaWebLanguageEnglishReport selectByPrimaryKey(@Param("tablename") String tablename, Integer rid);

    int updateByExampleSelective(@Param("tablename") String tablename, @Param("record") QaWebLanguageEnglishReport record, @Param("example") QaWebLanguageEnglishReportExample example);

    int updateByExample(@Param("tablename") String tablename, @Param("record") QaWebLanguageEnglishReport record, @Param("example") QaWebLanguageEnglishReportExample example);

    int updateByPrimaryKeySelective(@Param("tablename") String tablename, QaWebLanguageEnglishReport record);

    int updateByPrimaryKey(@Param("tablename") String tablename, QaWebLanguageEnglishReport record);


    List<String> selectAllVersion(@Param("tablename") String tablename);

    List<QaWebLanguageEnglishReport> selectAllReportByTime(@Param("tablename") String tablename, String start, String end, String version);

    List<QaWebLanguageEnglishReport> selectByType(@Param("tablename") String tablename, String type);
}